package com.atguigu.gmall.feign.user;

import com.atguigu.gmall.common.result.Result;
import com.atguigu.gmall.user.entity.UserAddress;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/**
 * @Description
 * @Return
 * @Author https://weiranyi.github.io
 * @Date Created in 2022-12-21 10:18
 **/
@RequestMapping("api/inner/rpc/user")
@FeignClient("service-user")
public interface UserFeignCilent {
    @GetMapping("address/list")
    public Result<List<UserAddress>> getUserAddress();
}
